//
//  ProjectCell.swift
//  test-ios
//
//  Created by wyz5204 on 2023/7/1.
//

import Foundation
import Reusable

class ProjectCell : AbstractTableViewCell<ProjectBean?> , Reusable {
    
    private lazy var title = {
        return UILabel()
    }()
    
    override func initView() {
        title.addTo(self.contentView) { view in
            view.snp.makeConstraints { make in
                make.centerY.equalToSuperview()
                make.left.equalToSuperview()
            }
        }
    }
    
    override func initBinder(_ view: UITableView, _ data: ProjectBean?, _ index: IndexPath) {
        guard let data else {
            return
        }
        title.setTitleAndColor(data.name)
    }
}
